package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class ActCosttyperecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public ActCosttyperecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        protected void addCriterionForJDBCTime(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Time(value.getTime()), property);
        }

        protected void addCriterionForJDBCTime(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Time> timeList = new ArrayList<java.sql.Time>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                timeList.add(new java.sql.Time(iter.next().getTime()));
            }
            addCriterion(condition, timeList, property);
        }

        protected void addCriterionForJDBCTime(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Time(value1.getTime()), new java.sql.Time(value2.getTime()), property);
        }

        public Criteria andAfcnoIsNull() {
            addCriterion("afcno is null");
            return (Criteria) this;
        }

        public Criteria andAfcnoIsNotNull() {
            addCriterion("afcno is not null");
            return (Criteria) this;
        }

        public Criteria andAfcnoEqualTo(String value) {
            addCriterion("afcno =", value, "afcno");
            return (Criteria) this;
        }

        public Criteria andAfcnoNotEqualTo(String value) {
            addCriterion("afcno <>", value, "afcno");
            return (Criteria) this;
        }

        public Criteria andAfcnoGreaterThan(String value) {
            addCriterion("afcno >", value, "afcno");
            return (Criteria) this;
        }

        public Criteria andAfcnoGreaterThanOrEqualTo(String value) {
            addCriterion("afcno >=", value, "afcno");
            return (Criteria) this;
        }

        public Criteria andAfcnoLessThan(String value) {
            addCriterion("afcno <", value, "afcno");
            return (Criteria) this;
        }

        public Criteria andAfcnoLessThanOrEqualTo(String value) {
            addCriterion("afcno <=", value, "afcno");
            return (Criteria) this;
        }

        public Criteria andAfcnoLike(String value) {
            addCriterion("afcno like", value, "afcno");
            return (Criteria) this;
        }

        public Criteria andAfcnoNotLike(String value) {
            addCriterion("afcno not like", value, "afcno");
            return (Criteria) this;
        }

        public Criteria andAfcnoIn(List<String> values) {
            addCriterion("afcno in", values, "afcno");
            return (Criteria) this;
        }

        public Criteria andAfcnoNotIn(List<String> values) {
            addCriterion("afcno not in", values, "afcno");
            return (Criteria) this;
        }

        public Criteria andAfcnoBetween(String value1, String value2) {
            addCriterion("afcno between", value1, value2, "afcno");
            return (Criteria) this;
        }

        public Criteria andAfcnoNotBetween(String value1, String value2) {
            addCriterion("afcno not between", value1, value2, "afcno");
            return (Criteria) this;
        }

        public Criteria andAfnoIsNull() {
            addCriterion("afno is null");
            return (Criteria) this;
        }

        public Criteria andAfnoIsNotNull() {
            addCriterion("afno is not null");
            return (Criteria) this;
        }

        public Criteria andAfnoEqualTo(String value) {
            addCriterion("afno =", value, "afno");
            return (Criteria) this;
        }

        public Criteria andAfnoNotEqualTo(String value) {
            addCriterion("afno <>", value, "afno");
            return (Criteria) this;
        }

        public Criteria andAfnoGreaterThan(String value) {
            addCriterion("afno >", value, "afno");
            return (Criteria) this;
        }

        public Criteria andAfnoGreaterThanOrEqualTo(String value) {
            addCriterion("afno >=", value, "afno");
            return (Criteria) this;
        }

        public Criteria andAfnoLessThan(String value) {
            addCriterion("afno <", value, "afno");
            return (Criteria) this;
        }

        public Criteria andAfnoLessThanOrEqualTo(String value) {
            addCriterion("afno <=", value, "afno");
            return (Criteria) this;
        }

        public Criteria andAfnoLike(String value) {
            addCriterion("afno like", value, "afno");
            return (Criteria) this;
        }

        public Criteria andAfnoNotLike(String value) {
            addCriterion("afno not like", value, "afno");
            return (Criteria) this;
        }

        public Criteria andAfnoIn(List<String> values) {
            addCriterion("afno in", values, "afno");
            return (Criteria) this;
        }

        public Criteria andAfnoNotIn(List<String> values) {
            addCriterion("afno not in", values, "afno");
            return (Criteria) this;
        }

        public Criteria andAfnoBetween(String value1, String value2) {
            addCriterion("afno between", value1, value2, "afno");
            return (Criteria) this;
        }

        public Criteria andAfnoNotBetween(String value1, String value2) {
            addCriterion("afno not between", value1, value2, "afno");
            return (Criteria) this;
        }

        public Criteria andConoIsNull() {
            addCriterion("cono is null");
            return (Criteria) this;
        }

        public Criteria andConoIsNotNull() {
            addCriterion("cono is not null");
            return (Criteria) this;
        }

        public Criteria andConoEqualTo(String value) {
            addCriterion("cono =", value, "cono");
            return (Criteria) this;
        }

        public Criteria andConoNotEqualTo(String value) {
            addCriterion("cono <>", value, "cono");
            return (Criteria) this;
        }

        public Criteria andConoGreaterThan(String value) {
            addCriterion("cono >", value, "cono");
            return (Criteria) this;
        }

        public Criteria andConoGreaterThanOrEqualTo(String value) {
            addCriterion("cono >=", value, "cono");
            return (Criteria) this;
        }

        public Criteria andConoLessThan(String value) {
            addCriterion("cono <", value, "cono");
            return (Criteria) this;
        }

        public Criteria andConoLessThanOrEqualTo(String value) {
            addCriterion("cono <=", value, "cono");
            return (Criteria) this;
        }

        public Criteria andConoLike(String value) {
            addCriterion("cono like", value, "cono");
            return (Criteria) this;
        }

        public Criteria andConoNotLike(String value) {
            addCriterion("cono not like", value, "cono");
            return (Criteria) this;
        }

        public Criteria andConoIn(List<String> values) {
            addCriterion("cono in", values, "cono");
            return (Criteria) this;
        }

        public Criteria andConoNotIn(List<String> values) {
            addCriterion("cono not in", values, "cono");
            return (Criteria) this;
        }

        public Criteria andConoBetween(String value1, String value2) {
            addCriterion("cono between", value1, value2, "cono");
            return (Criteria) this;
        }

        public Criteria andConoNotBetween(String value1, String value2) {
            addCriterion("cono not between", value1, value2, "cono");
            return (Criteria) this;
        }

        public Criteria andAfcbegintimeIsNull() {
            addCriterion("afcbeginTime is null");
            return (Criteria) this;
        }

        public Criteria andAfcbegintimeIsNotNull() {
            addCriterion("afcbeginTime is not null");
            return (Criteria) this;
        }

        public Criteria andAfcbegintimeEqualTo(Date value) {
            addCriterionForJDBCTime("afcbeginTime =", value, "afcbegintime");
            return (Criteria) this;
        }

        public Criteria andAfcbegintimeNotEqualTo(Date value) {
            addCriterionForJDBCTime("afcbeginTime <>", value, "afcbegintime");
            return (Criteria) this;
        }

        public Criteria andAfcbegintimeGreaterThan(Date value) {
            addCriterionForJDBCTime("afcbeginTime >", value, "afcbegintime");
            return (Criteria) this;
        }

        public Criteria andAfcbegintimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("afcbeginTime >=", value, "afcbegintime");
            return (Criteria) this;
        }

        public Criteria andAfcbegintimeLessThan(Date value) {
            addCriterionForJDBCTime("afcbeginTime <", value, "afcbegintime");
            return (Criteria) this;
        }

        public Criteria andAfcbegintimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("afcbeginTime <=", value, "afcbegintime");
            return (Criteria) this;
        }

        public Criteria andAfcbegintimeIn(List<Date> values) {
            addCriterionForJDBCTime("afcbeginTime in", values, "afcbegintime");
            return (Criteria) this;
        }

        public Criteria andAfcbegintimeNotIn(List<Date> values) {
            addCriterionForJDBCTime("afcbeginTime not in", values, "afcbegintime");
            return (Criteria) this;
        }

        public Criteria andAfcbegintimeBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("afcbeginTime between", value1, value2, "afcbegintime");
            return (Criteria) this;
        }

        public Criteria andAfcbegintimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("afcbeginTime not between", value1, value2, "afcbegintime");
            return (Criteria) this;
        }

        public Criteria andAfcpriceIsNull() {
            addCriterion("afcprice is null");
            return (Criteria) this;
        }

        public Criteria andAfcpriceIsNotNull() {
            addCriterion("afcprice is not null");
            return (Criteria) this;
        }

        public Criteria andAfcpriceEqualTo(String value) {
            addCriterion("afcprice =", value, "afcprice");
            return (Criteria) this;
        }

        public Criteria andAfcpriceNotEqualTo(String value) {
            addCriterion("afcprice <>", value, "afcprice");
            return (Criteria) this;
        }

        public Criteria andAfcpriceGreaterThan(String value) {
            addCriterion("afcprice >", value, "afcprice");
            return (Criteria) this;
        }

        public Criteria andAfcpriceGreaterThanOrEqualTo(String value) {
            addCriterion("afcprice >=", value, "afcprice");
            return (Criteria) this;
        }

        public Criteria andAfcpriceLessThan(String value) {
            addCriterion("afcprice <", value, "afcprice");
            return (Criteria) this;
        }

        public Criteria andAfcpriceLessThanOrEqualTo(String value) {
            addCriterion("afcprice <=", value, "afcprice");
            return (Criteria) this;
        }

        public Criteria andAfcpriceLike(String value) {
            addCriterion("afcprice like", value, "afcprice");
            return (Criteria) this;
        }

        public Criteria andAfcpriceNotLike(String value) {
            addCriterion("afcprice not like", value, "afcprice");
            return (Criteria) this;
        }

        public Criteria andAfcpriceIn(List<String> values) {
            addCriterion("afcprice in", values, "afcprice");
            return (Criteria) this;
        }

        public Criteria andAfcpriceNotIn(List<String> values) {
            addCriterion("afcprice not in", values, "afcprice");
            return (Criteria) this;
        }

        public Criteria andAfcpriceBetween(String value1, String value2) {
            addCriterion("afcprice between", value1, value2, "afcprice");
            return (Criteria) this;
        }

        public Criteria andAfcpriceNotBetween(String value1, String value2) {
            addCriterion("afcprice not between", value1, value2, "afcprice");
            return (Criteria) this;
        }

        public Criteria andAfcendtimeIsNull() {
            addCriterion("afcendTime is null");
            return (Criteria) this;
        }

        public Criteria andAfcendtimeIsNotNull() {
            addCriterion("afcendTime is not null");
            return (Criteria) this;
        }

        public Criteria andAfcendtimeEqualTo(Date value) {
            addCriterionForJDBCTime("afcendTime =", value, "afcendtime");
            return (Criteria) this;
        }

        public Criteria andAfcendtimeNotEqualTo(Date value) {
            addCriterionForJDBCTime("afcendTime <>", value, "afcendtime");
            return (Criteria) this;
        }

        public Criteria andAfcendtimeGreaterThan(Date value) {
            addCriterionForJDBCTime("afcendTime >", value, "afcendtime");
            return (Criteria) this;
        }

        public Criteria andAfcendtimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("afcendTime >=", value, "afcendtime");
            return (Criteria) this;
        }

        public Criteria andAfcendtimeLessThan(Date value) {
            addCriterionForJDBCTime("afcendTime <", value, "afcendtime");
            return (Criteria) this;
        }

        public Criteria andAfcendtimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("afcendTime <=", value, "afcendtime");
            return (Criteria) this;
        }

        public Criteria andAfcendtimeIn(List<Date> values) {
            addCriterionForJDBCTime("afcendTime in", values, "afcendtime");
            return (Criteria) this;
        }

        public Criteria andAfcendtimeNotIn(List<Date> values) {
            addCriterionForJDBCTime("afcendTime not in", values, "afcendtime");
            return (Criteria) this;
        }

        public Criteria andAfcendtimeBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("afcendTime between", value1, value2, "afcendtime");
            return (Criteria) this;
        }

        public Criteria andAfcendtimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("afcendTime not between", value1, value2, "afcendtime");
            return (Criteria) this;
        }

        public Criteria andAfcbegindateIsNull() {
            addCriterion("afcbegindate is null");
            return (Criteria) this;
        }

        public Criteria andAfcbegindateIsNotNull() {
            addCriterion("afcbegindate is not null");
            return (Criteria) this;
        }

        public Criteria andAfcbegindateEqualTo(Date value) {
            addCriterionForJDBCDate("afcbegindate =", value, "afcbegindate");
            return (Criteria) this;
        }

        public Criteria andAfcbegindateNotEqualTo(Date value) {
            addCriterionForJDBCDate("afcbegindate <>", value, "afcbegindate");
            return (Criteria) this;
        }

        public Criteria andAfcbegindateGreaterThan(Date value) {
            addCriterionForJDBCDate("afcbegindate >", value, "afcbegindate");
            return (Criteria) this;
        }

        public Criteria andAfcbegindateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("afcbegindate >=", value, "afcbegindate");
            return (Criteria) this;
        }

        public Criteria andAfcbegindateLessThan(Date value) {
            addCriterionForJDBCDate("afcbegindate <", value, "afcbegindate");
            return (Criteria) this;
        }

        public Criteria andAfcbegindateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("afcbegindate <=", value, "afcbegindate");
            return (Criteria) this;
        }

        public Criteria andAfcbegindateIn(List<Date> values) {
            addCriterionForJDBCDate("afcbegindate in", values, "afcbegindate");
            return (Criteria) this;
        }

        public Criteria andAfcbegindateNotIn(List<Date> values) {
            addCriterionForJDBCDate("afcbegindate not in", values, "afcbegindate");
            return (Criteria) this;
        }

        public Criteria andAfcbegindateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("afcbegindate between", value1, value2, "afcbegindate");
            return (Criteria) this;
        }

        public Criteria andAfcbegindateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("afcbegindate not between", value1, value2, "afcbegindate");
            return (Criteria) this;
        }

        public Criteria andAfcenddateIsNull() {
            addCriterion("afcenddate is null");
            return (Criteria) this;
        }

        public Criteria andAfcenddateIsNotNull() {
            addCriterion("afcenddate is not null");
            return (Criteria) this;
        }

        public Criteria andAfcenddateEqualTo(Date value) {
            addCriterionForJDBCDate("afcenddate =", value, "afcenddate");
            return (Criteria) this;
        }

        public Criteria andAfcenddateNotEqualTo(Date value) {
            addCriterionForJDBCDate("afcenddate <>", value, "afcenddate");
            return (Criteria) this;
        }

        public Criteria andAfcenddateGreaterThan(Date value) {
            addCriterionForJDBCDate("afcenddate >", value, "afcenddate");
            return (Criteria) this;
        }

        public Criteria andAfcenddateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("afcenddate >=", value, "afcenddate");
            return (Criteria) this;
        }

        public Criteria andAfcenddateLessThan(Date value) {
            addCriterionForJDBCDate("afcenddate <", value, "afcenddate");
            return (Criteria) this;
        }

        public Criteria andAfcenddateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("afcenddate <=", value, "afcenddate");
            return (Criteria) this;
        }

        public Criteria andAfcenddateIn(List<Date> values) {
            addCriterionForJDBCDate("afcenddate in", values, "afcenddate");
            return (Criteria) this;
        }

        public Criteria andAfcenddateNotIn(List<Date> values) {
            addCriterionForJDBCDate("afcenddate not in", values, "afcenddate");
            return (Criteria) this;
        }

        public Criteria andAfcenddateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("afcenddate between", value1, value2, "afcenddate");
            return (Criteria) this;
        }

        public Criteria andAfcenddateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("afcenddate not between", value1, value2, "afcenddate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}